package lib.map;

import java.io.InputStream;
import java.net.URL;

import android.graphics.drawable.Drawable;

public class MyMedia {
	public static Drawable LoadImageFromWebOperations(String url,String name) {
	    try {
	        InputStream is = (InputStream) new URL(url).getContent();
	        Drawable d = Drawable.createFromStream(is,name);
	        return d;
	    } catch (Exception e) {
	        return null;
	    }
	}
}
